using System;
using System.ComponentModel.DataAnnotations;
using MESBaseis.Domain.BaseEntities;

namespace MESBaseis.Domain.XZY
{
    /// <summary>
    /// 核心指标实体
    /// </summary>
    public class CoreMetricsModel : BaseModel
    {
        /// <summary>
        /// 统计日期
        /// </summary>
        [Required]
        public DateTime Date { get; set; }

        /// <summary>
        /// 今日销售收入
        /// </summary>
        public decimal SalesRevenue { get; set; } = 0;

        /// <summary>
        /// 今日销售订单量
        /// </summary>
        public int SalesOrderCount { get; set; } = 0;

        /// <summary>
        /// 今日回款
        /// </summary>
        public decimal Collection { get; set; } = 0;

        /// <summary>
        /// 今日采购支出
        /// </summary>
        public decimal PurchaseExpense { get; set; } = 0;

        /// <summary>
        /// 今日采购订单量
        /// </summary>
        public int PurchaseOrderCount { get; set; } = 0;

        /// <summary>
        /// 今日已付款
        /// </summary>
        public decimal PaidAmount { get; set; } = 0;

        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(500)]
        public string? Remarks { get; set; }
    }
}